<?php /* Smarty version Smarty3-RC3, created on 2013-10-11 05:47:33
         compiled from ".\templates\kaarigarDetail.tpl" */ ?>
<?php /*%%SmartyHeaderCode:27491525790f5559974-54393777%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd88bdaf1bf30dd8bcff21e4db4cc21c8f3df8c68' => 
    array (
      0 => '.\\templates\\kaarigarDetail.tpl',
      1 => 1381470451,
    ),
  ),
  'nocache_hash' => '27491525790f5559974-54393777',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_function_html_options')) include 'D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\sil1\include\Smarty\libs\plugins\function.html_options.php';
if (!is_callable('smarty_function_html_select_date')) include 'D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\sil1\include\Smarty\libs\plugins\function.html_select_date.php';
if (!is_callable('smarty_modifier_string_format')) include 'D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\sil1\include\Smarty\libs\plugins\modifier.string_format.php';
if (!is_callable('smarty_modifier_date_format')) include 'D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\sil1\include\Smarty\libs\plugins\modifier.date_format.php';
?><?php if ($_GET['print']!=1){?>
  <?php $_template = new Smarty_Internal_Template("header.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<?php }else{ ?>
  <?php $_template = new Smarty_Internal_Template("headerPrint.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<?php }?>
<script type="text/javascript">
function bookFunction(id)
{
  document.form1.bdate.value="1";
  document.form1.submit();
}
function myFunction()
{
	if(confirm("Are You Sure To Delete")== true)
	{
		return true;
	}
	else
	{
		return false;
	}
}
</script>
<form name="form1" action="" method="post">
<input type="hidden" name="bdate" id="bdate" value="0" />
<center><h4><?php echo $_smarty_tpl->getVariable('l_kaarigarDetail')->value;?>
</h4></center>
<div class="contentDiv">
  <table border="0" align="center" width="100%" cellspacing="0" cellpadding="4">
    <tr><hr COLOR="#000000" /></tr>  
		 <tr>
		  <td colspan="4" class="table1">
		    <?php echo $_smarty_tpl->getVariable('l_kaarigarName')->value;?>
 :
		    <select name="kaarigarId" onchange="bookFunction()" autofocus />
		      <option value="0"><?php echo $_smarty_tpl->getVariable('l_kaarigarName')->value;?>
</option>
		      <?php ob_start();?><?php echo $_smarty_tpl->getVariable('kaarigarId')->value;?>
<?php $_tmp1=ob_get_clean();?><?php echo smarty_function_html_options(array('values'=>$_smarty_tpl->getVariable('kaarigar')->value['id'],'output'=>$_smarty_tpl->getVariable('kaarigar')->value['name'],'selected'=>$_tmp1),$_smarty_tpl->smarty,$_smarty_tpl);?>

		    </select>
		  </td>
		  <td colspan="5" class="table1">
		    <?php echo $_smarty_tpl->getVariable('l_from')->value;?>
 : 
		      <?php ob_start();?><?php echo $_smarty_tpl->getVariable('kaarigarFromDate')->value;?>
<?php $_tmp2=ob_get_clean();?><?php echo smarty_function_html_select_date(array('prefix'=>"fromDate",'start_year'=>"-2",'end_year'=>"+1",'field_order'=>"DMY",'day_value_format'=>"%02d",'time'=>$_tmp2),$_smarty_tpl->smarty,$_smarty_tpl);?>

		    <?php echo $_smarty_tpl->getVariable('l_to')->value;?>
 
  		    <?php ob_start();?><?php echo $_smarty_tpl->getVariable('toDate')->value;?>
<?php $_tmp3=ob_get_clean();?><?php echo smarty_function_html_select_date(array('prefix'=>"toDate",'start_year'=>"-2",'end_year'=>"+1",'field_order'=>"DMY",'day_value_format'=>"%02d",'time'=>$_tmp3),$_smarty_tpl->smarty,$_smarty_tpl);?>

		  </td>
		  <td class="table1"><input type="submit" name="submitBtn" value="<?php echo $_smarty_tpl->getVariable('l_find')->value;?>
" /></td>
		   <?php if ($_GET['print']!=1){?>
		  <td class="table1"><a href="kaarigarDetail.php?print=1&fromDate=<?php echo $_smarty_tpl->getVariable('fromDate')->value;?>
&toDate=<?php echo $_smarty_tpl->getVariable('toDate')->value;?>
&kaarigarId=<?php echo $_smarty_tpl->getVariable('kaarigarId')->value;?>
">Print</a></td>
		    <?php }else{ ?>
    <?php }?>
		</tr>
	</table>	
	<table border="1" align="center" width="100%" cellspacing="0" cellpadding="1">
    <tr><hr COLOR="#000000" /></tr> 
		<tr class="table1">
		  <th width="7%">&nbsp;</th>
		  <th width="8%">Date :</th>
		  <th width="9%">Parti</th>
		  <th align="right"><?php echo $_smarty_tpl->getVariable('l_debit')->value;?>
</th>
		  <th align="right"><?php echo $_smarty_tpl->getVariable('l_credit')->value;?>
</th>
		  <th width="9%">Parti</th>
		  <th align="right"><?php echo $_smarty_tpl->getVariable('l_vadhaaroGhataado')->value;?>
</th>
		  <th align="right" width="9%">Ad Javak</th>
		  <th align="right" width="9%">Ad Aavak</th>
		  <th align="right"><?php echo $_smarty_tpl->getVariable('l_qty')->value;?>
</th>
		  <th align="right"><?php echo $_smarty_tpl->getVariable('l_rate')->value;?>
</th>
		  <th align="right"><?php echo $_smarty_tpl->getVariable('l_crAmount')->value;?>
</th>
		  <th align="right"><?php echo $_smarty_tpl->getVariable('l_drAmount')->value;?>
</th>
		  <th align="right"><?php echo $_smarty_tpl->getVariable('l_crDr')->value;?>
</th>
		</tr>
		<tr class="table2">
		  <td>&nbsp;</td>
		  <td>&nbsp;</td>
		  <td align="right" style="border-right:1px;"><b><?php echo $_smarty_tpl->getVariable('opening')->value['particulars'];?>
</b></td>
		  <td align="right" style="border-right:1px;"><?php if ($_smarty_tpl->getVariable('opening')->value['debit']!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('opening')->value['debit'],"%.0f");?>
<?php }?></td>
		  <td align="right" style="border-right:1px;"><?php if ($_smarty_tpl->getVariable('opening')->value['credit']!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('opening')->value['credit'],"%.0f");?>
<?php }?></td>
		  <td align="right" style="border-right:1px;"><?php echo $_smarty_tpl->getVariable('opening')->value['particular'];?>
</td>
		  <td align="right" style="border-right:1px;"><?php if ($_smarty_tpl->getVariable('opening')->value['vadhaaroGhatado']!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('opening')->value['vadhaaroGhatado'],"%.0f");?>
<?php }?></td>
		  <td align="right" style="border-right:1px;"><?php if ($_smarty_tpl->getVariable('opening')->value['addDebit']!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('opening')->value['addDebit'],"%.0f");?>
<?php }?></td>
		  <td align="right" style="border-right:1px;"><?php if ($_smarty_tpl->getVariable('opening')->value['addCredit']!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('opening')->value['addCredit'],"%.0f");?>
<?php }?></td>
		  <td align="right" style="border-right:1px;"><?php if ($_smarty_tpl->getVariable('opening')->value['qty']!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('opening')->value['qty'],"%.0f");?>
<?php }?></td>
		  <td align="right" style="border-right:1px;"><?php if ($_smarty_tpl->getVariable('opening')->value['rate']!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('opening')->value['rate'],"%.0f");?>
<?php }?></td>
		  <td align="right" style="border-right:1px;"><?php if ($_smarty_tpl->getVariable('opening')->value['crAmount']!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('opening')->value['crAmount'],"%.0f");?>
<?php }?></td>
		  <td align="right" style="border-right:1px;"><?php if ($_smarty_tpl->getVariable('opening')->value['drAmount']!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('opening')->value['drAmount'],"%.0f");?>
<?php }?></td>
		  <td align="right" style="border-right:1px;"><?php if ($_smarty_tpl->getVariable('opening')->value['totalAmt']){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('opening')->value['totalAmt'],"%.0f");?>
<?php }?></td>
		</tr>
		<?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['name'] = "sec";
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'] = is_array($_loop=count($_smarty_tpl->getVariable('kaarigarDetail')->value)) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total']);
?>
		<tr class="table2">
			<td>
		    <?php if ($_GET['print']!=1){?>
		      <?php if ($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['kaarigarMasterId']!=$_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']-1]['kaarigarMasterId']){?><a href="kaarigarDetailList.php?print=1&kaarigarMasterId=<?php echo $_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['kaarigarMasterId'];?>
&kaarigarId=<?php echo $_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['kaarigarId'];?>
&kaarigarDate=<?php echo $_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['kaarigarMasterDate'];?>
">Print</a><?php }else{ ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php }?>
		      <?php if ($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['kaarigarMasterId']!=$_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']-1]['kaarigarMasterId']){?><a href="kaarigarDetailDelete.php?kaarigarMasterId=<?php echo $_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['kaarigarMasterId'];?>
" onClick="return(confirm('Warning: Are you sure?');"><img src="./images/b_drop.png" border="0" width="15" height="15"></a><?php }else{ ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php }?>
		      <?php if ($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['kaarigarMasterId']!=$_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']-1]['kaarigarMasterId']){?><a href="kaarigarEntry.php?kaarigarMasterId=<?php echo $_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['kaarigarMasterId'];?>
"><img src="./images/b_edit.png" border="0" width="15" height="15"></a><?php }else{ ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php }?>
		    <?php }else{ ?>
		      &nbsp;
		    <?php }?>
		  </td>
		  <td align="right" style="border-right:1px;" NOWRAP><?php echo smarty_modifier_date_format($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['kaarigarMasterDate'],"%d-%m-%Y");?>
</td>
		  <td NOWRAP><?php echo smarty_modifier_date_format($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['kaarigarDate'],"%d-%m-%Y");?>
&nbsp;&nbsp;<?php echo $_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['particulars'];?>
</td>
		  <td align="right" style="border-right:1px; color:green;"><?php if ($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['debit']!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['debit'],"%.0f");?>
<?php }else{ ?>&nbsp;<?php }?></td>
		  <td align="right" style="border-right:1px; color:red;"><?php if ($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['credit']!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['credit'],"%.0f");?>
<?php }else{ ?>&nbsp;<?php }?></td>
		  <td align="left" style="border-right:1px;"><?php echo $_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['particular'];?>
</td>
		  <?php if ($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['addedvadhaaroGhatado']>0){?>
		    <td align="right" style="border-right:1px; color:red;"><?php if ($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['kaarigarMasterId']!=$_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']-1]['kaarigarMasterId']){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['addedvadhaaroGhatado'],"%.0f");?>
<?php }else{ ?>&nbsp;<?php }?></td>
		  <?php }else{ ?>
		    <td align="right" style="border-right:1px; color:green;"><?php if ($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['kaarigarMasterId']!=$_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']-1]['kaarigarMasterId']){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['addedvadhaaroGhatado'],"%.0f");?>
<?php }else{ ?>&nbsp;<?php }?></td>
		  <?php }?>
		  <td align="right" style="border-right:1px; color:green;"><?php if ($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['addDebit']!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['addDebit'],"%.0f");?>
<?php }else{ ?>&nbsp;<?php }?></td>
		  <td align="right" style="border-right:1px; color:red;"><?php if ($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['addCredit']!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['addCredit'],"%.0f");?>
<?php }else{ ?>&nbsp;<?php }?></td>
		  <td align="right" style="border-right:1px;"><?php if ($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['qty']!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['qty'],"%.0f");?>
<?php }else{ ?>&nbsp;<?php }?></td>
		  <td align="right" style="border-right:1px;"><?php if ($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['rate']!=0){?><?php echo $_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['rate'];?>
<?php }else{ ?>&nbsp;<?php }?></td>
		  <td align="right" style="border-right:1px; color:red;"><?php if ($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['crAmount']!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['crAmount'],"%.0f");?>
<?php }else{ ?>&nbsp;<?php }?></td>
		  <td align="right" style="border-right:1px; color:green;"><?php if ($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['drAmount']!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['drAmount'],"%.0f");?>
<?php }else{ ?>&nbsp;<?php }?></td>
		  <?php if ($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['totalAmt']>0){?>
		    <td align="right" style="border-right:1px; color:green;"><?php if ($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['totalAmt']!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['totalAmt'],"%.0f");?>
<?php }?></td>
		  <?php }else{ ?>
		    <td align="right" style="border-right:1px; color:red;"><?php if ($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['totalAmt']!=0){?><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('kaarigarDetail')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['totalAmt'],"%.0f");?>
<?php }?></td>
		  <?php }?>
		</tr>
		<?php endfor; endif; ?>
    <tr><td colspan="14"><hr COLOR="#000000" /></td></tr> 
		<tr class="table1">
		  <td>
      <?php if ($_GET['print']!=1){?>
        <th>&nbsp;</th>
        <th>&nbsp;</th>
		    <th colspan="2" align="right"><?php echo $_smarty_tpl->getVariable('l_total')->value;?>
</th>
		    <th>&nbsp;</th>
		    <?php if ($_smarty_tpl->getVariable('total')->value['vadhGhat']>0){?>
		      <th align="right" style="color:red;"><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('total')->value['vadhGhat'],"%.2f");?>
</th>
		    <?php }else{ ?>
		      <th align="right" style="color:green;"><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('total')->value['vadhGhat'],"%.2f");?>
</th>
		    <?php }?>
		    <th>Ad VadhGhat:</th>
		    <th align="right" style="color:red;"><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('total')->value['addVadhGhat'],"%.0f");?>
</th>
		    <th align="right"><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('total')->value['qty'],"%.0f");?>
</th>
		    <th>&nbsp;</th>
		    <th align="right" style="color:red;"><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('total')->value['crAmount'],"%.0f");?>
</th>
		    <th align="right" style="color:green;"><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('total')->value['drAmount'],"%.0f");?>
</th>
		    <?php if ($_smarty_tpl->getVariable('total')->value['totalAmt']>0){?>
		    <th align="right" style="color:green;"><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('total')->value['totalAmt'],"%.0f");?>
</th>
		    <?php }else{ ?>
		    <th align="right" style="color:red;"><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('total')->value['totalAmt'],"%.0f");?>
</th>
		    <?php }?>
	    <?php }else{ ?>
		    <th colspan="4" align="right"><?php echo $_smarty_tpl->getVariable('l_total')->value;?>
</th>
		    <th>&nbsp;</th>
		    <th align="right" style="color:red;"><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('total')->value['vadhGhat'],"%.2f");?>
</th>
		    <th>&nbsp;</th>
		    <th align="right" style="color:red;"><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('total')->value['addVadhGhat'],"%.0f");?>
</th>
		    <th align="right"><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('total')->value['qty'],"%.0f");?>
</th>
		    <th>&nbsp;</th>
		    <th align="right" style="color:green;"><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('total')->value['crAmount'],"%.0f");?>
</th>
		    <th align="right" style="color:green;"><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('total')->value['drAmount'],"%.0f");?>
</th>
		    <th align="right" ><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('total')->value['totalAmt'],"%.0f");?>
</th>
		  <?php }?>
		  </td>
		</tr>
  </table>
</div>
</form>
<?php if ($_GET['print']!=1){?>
  <?php $_template = new Smarty_Internal_Template("footer.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<?php }?>
